//
// Created by jyh on 2021/8/9.
//

#ifndef BBOVRSCHIP_STREAMOBS_H
#define BBOVRSCHIP_STREAMOBS_H

#include "Com.h"
#include "rtklib_fun.h"

typedef struct RtcmObsDecoder {
    rtcm_t m_rtcm;
    char buff[4096];
    int nbyte, len;
};
typedef struct ObsPack {
    double obs[MAXSAT][MAXFREQ * 2];
    double snr[MAXSAT][MAXFREQ], dop[MAXSAT][MAXFREQ];
    char fob[MAXSAT][MAXFREQ * 2][LEN_OBSTYPE];
    int mjd;
    double sod;
};

void RtcmObsDecoder_Initial(struct RtcmObsDecoder *Decoder);
int StreamReader(char *buff, int nbyte, double stax[3], int mjd, double sod);
char StreamObs_m_setEphData(nav_t* nav,int psat);

void (*replySat)();

#endif //BBOVRSCHIP_STREAMOBS_H
